//
// Created by root on 4/29/17.
//

#include "runner_translate.h"
#include "../lex/runner_lex.h"

int setup_translate(void **state) {
    init_macro_functions();

    //setup_lex(state); //TODO delete
    return 0;
}

int teardown_translate(void **state) {
    if (macros != NULL) {
        hashmap_free(macros);
    }
    return 0;
}

FILE *create_temp_file(const char *string) {
    FILE *file = tmpfile();
    fputs(string, file);
    return file;
}
